package com.tjsinfo.tjsoa.reminded.action;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.tjsinfo.tjsoa.reminded.vo.TSystemReminded;
import com.tjsinfo.tjsoa.reminded.bo.TSystemRemindedManager;
import com.tjsinfo.tjsoa.system.vo.User;

public class RemindedSendListAction extends Action {
	TSystemRemindedManager systemRemindedManager;
//	TMeetingNotifyManager notifyManager;

	public TSystemRemindedManager getSystemRemindedManager() {
		return systemRemindedManager;
	}


	public void setSystemRemindedManager(
			TSystemRemindedManager systemRemindedManager) {
		this.systemRemindedManager = systemRemindedManager;
	}
	public ActionForward execute(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response) {
		try {
//			TSystemRemindedManager tsfm=new TSystemRemindedManagerImpl();
			HttpSession session=request.getSession();
			User user=(User)session.getAttribute("user");
			String tag=request.getParameter("tag");
			List<TSystemReminded> list=systemRemindedManager.findByLike("idList", "%"+user.getUser_id()+"%");
			request.setAttribute("list", list);
			
			
//			//右侧边栏
////			TMeetingNotifyManager tmnm=new TMeetingNotifyManagerImpl();
//			List<TMeetingNotify> tmnList=notifyManager.findNoStart();
//			request.setAttribute("tmnList", tmnList);
			return mapping.findForward("success");
		} catch (Exception e) {
			e.printStackTrace();

			return mapping.findForward("failed");
		}
	}

}
